/*
 * commons is a based project implemented
 * Copyright (C) 2024 Jasmine
 */
package com.commons.uid.worker;

import com.commons.uid.impl.DefaultUidGenerator;

/**
 * Represents a worker id assigner for {@link DefaultUidGenerator}
 *
 * @author yutianbao
 */
public interface WorkerIdAssigner {

    /**
     * Assign worker id for {@link DefaultUidGenerator}
     *
     * @return assigned worker id
     */
    long assignWorkerId();

}
